package kcms.db;

import java.util.Date;



import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

@Entity
@Table(name = "view_teacher_student", catalog = "kcms")
public class TeachStudent implements java.io.Serializable{
         private TeachStudentId id;

		public TeachStudent() {
			super();
		}

		public TeachStudent(TeachStudentId id) {
			super();
			this.id = id;
		}
		@EmbeddedId
		@AttributeOverrides({
				@AttributeOverride(name = "cname", column = @Column(name = "cname")),
				@AttributeOverride(name = "teacher", column = @Column(name = "teacher")),
				@AttributeOverride(name = "cid", column = @Column(name = "cid")),
				@AttributeOverride(name = "csn", column = @Column(name = "csn")) })
		public TeachStudentId getId() {
			return id;
		}

		public void setId(TeachStudentId id) {
			this.id = id;
		}
         
}
